package cn.jinjimi.app.controller;

import android.content.Context;

import cn.jinjimi.base.util.LogUtil;
import cn.jinjimi.app.AccountManager;

/**
 * Created by Rain on 2016/1/14.
 */
public abstract class BaseController {

    private static final String TAG = BaseController.class.getSimpleName();

    /**
     * 网络请求Service header的初始化
     *
     * @param context
     */
    public static void init(Context context) {
        LogUtil.d(TAG, "X-APP-TOKEN=" + AccountManager.getInstance().getAccount().token);
        LogUtil.d(TAG, "X-APP-SSOID=" + AccountManager.getInstance().getAccount().ssoid);
    }

    /**
     * 客户来源标识
     */
    public static final int SOURCE_WX = 3;
    public static final int SOURCE_CONTACTS = 1;
    public static final int SOURCE_APP = 2;

}

